[INFO] cloning repository https://github.com/dezzare/desafio_backend_alura
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dezzare/desafio_backend_alura" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdezzare%2Fdesafio_backend_alura", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdezzare%2Fdesafio_backend_alura'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6b5045172acf8747cb03e9ea54c776e29d4a8332
[INFO] checking dezzare/desafio_backend_alura against try#5c7108a2805ef56743d713d2789c5e802631c9e8 for pr-97739
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdezzare%2Fdesafio_backend_alura" "/workspace/builds/worker-4/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/dezzare/desafio_backend_alura on toolchain 5c7108a2805ef56743d713d2789c5e802631c9e8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5c7108a2805ef56743d713d2789c5e802631c9e8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/dezzare/desafio_backend_alura
[INFO] finished tweaking git repo https://github.com/dezzare/desafio_backend_alura
[INFO] tweaked toml for git repo https://github.com/dezzare/desafio_backend_alura written to /workspace/builds/worker-4/source/Cargo.toml
[INFO] crate git repo https://github.com/dezzare/desafio_backend_alura already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+5c7108a2805ef56743d713d2789c5e802631c9e8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+5c7108a2805ef56743d713d2789c5e802631c9e8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 253176f8b957b87d84a46f8e55618db344859c2f2b0e4cda5f8e0c7cda803cab
[INFO] running `Command { std: "docker" "start" "-a" "253176f8b957b87d84a46f8e55618db344859c2f2b0e4cda5f8e0c7cda803cab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "253176f8b957b87d84a46f8e55618db344859c2f2b0e4cda5f8e0c7cda803cab", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "253176f8b957b87d84a46f8e55618db344859c2f2b0e4cda5f8e0c7cda803cab", kill_on_drop: false }`
[INFO] [stdout] 253176f8b957b87d84a46f8e55618db344859c2f2b0e4cda5f8e0c7cda803cab
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+5c7108a2805ef56743d713d2789c5e802631c9e8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5696245c3a1de58f3aae550861f419752271785756da9470207941586a0b5571
[INFO] running `Command { std: "docker" "start" "-a" "5696245c3a1de58f3aae550861f419752271785756da9470207941586a0b5571", kill_on_drop: false }`
[INFO] [stderr]    Compiling version_check v0.9.4
[INFO] [stderr]    Compiling libc v0.2.122
[INFO] [stderr]    Compiling proc-macro2 v1.0.37
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling syn v1.0.91
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling serde_derive v1.0.136
[INFO] [stderr]    Compiling typenum v1.15.0
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling serde v1.0.136
[INFO] [stderr]    Compiling futures-core v0.3.21
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]     Checking once_cell v1.10.0
[INFO] [stderr]    Compiling erased-serde v0.3.20
[INFO] [stderr]    Compiling log v0.4.16
[INFO] [stderr]    Compiling cc v1.0.73
[INFO] [stderr]    Compiling crossbeam-utils v0.8.8
[INFO] [stderr]     Checking subtle v2.4.1
[INFO] [stderr]    Compiling signal-hook v0.3.13
[INFO] [stderr]     Checking pin-project-lite v0.2.8
[INFO] [stderr]     Checking futures-io v0.3.21
[INFO] [stderr]     Checking fastrand v1.7.0
[INFO] [stderr]     Checking event-listener v2.5.2
[INFO] [stderr]     Checking cache-padded v1.2.0
[INFO] [stderr]     Checking waker-fn v1.1.0
[INFO] [stderr]     Checking opaque-debug v0.3.0
[INFO] [stderr]     Checking parking v2.0.0
[INFO] [stderr]     Checking slab v0.4.6
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]    Compiling serde_json v1.0.79
[INFO] [stderr]     Checking ppv-lite86 v0.2.16
[INFO] [stderr]     Checking itoa v1.0.1
[INFO] [stderr]     Checking async-task v4.2.0
[INFO] [stderr]     Checking percent-encoding v2.1.0
[INFO] [stderr]     Checking pin-utils v0.1.0
[INFO] [stderr]     Checking ryu v1.0.9
[INFO] [stderr]     Checking tinyvec_macros v0.1.0
[INFO] [stderr]     Checking atomic-waker v1.0.0
[INFO] [stderr]     Checking base64 v0.13.0
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling proc-macro-hack v0.5.19
[INFO] [stderr]     Checking cpufeatures v0.2.2
[INFO] [stderr]     Checking matches v0.1.9
[INFO] [stderr]     Checking unicode-bidi v0.3.7
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling untrusted v0.7.1
[INFO] [stderr]    Compiling siphasher v0.3.10
[INFO] [stderr]    Compiling const_fn v0.4.9
[INFO] [stderr]     Checking cpuid-bool v0.2.0
[INFO] [stderr]    Compiling anyhow v1.0.56
[INFO] [stderr]    Compiling futures-task v0.3.21
[INFO] [stderr]    Compiling regex-syntax v0.6.25
[INFO] [stderr]     Checking futures-sink v0.3.21
[INFO] [stderr]    Compiling futures-util v0.3.21
[INFO] [stderr]    Compiling futures-channel v0.3.21
[INFO] [stderr]    Compiling crossbeam-queue v0.3.5
[INFO] [stderr]     Checking fnv v1.0.7
[INFO] [stderr]    Compiling http-types v2.12.0
[INFO] [stderr]    Compiling smallvec v1.8.0
[INFO] [stderr]    Compiling httparse v1.6.0
[INFO] [stderr]    Compiling ucd-trie v0.1.3
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling async-trait v0.1.53
[INFO] [stderr]     Checking infer v0.2.3
[INFO] [stderr]     Checking bitflags v1.3.2
[INFO] [stderr]     Checking unic-common v0.9.0
[INFO] [stderr]    Compiling maplit v1.0.2
[INFO] [stderr]     Checking same-file v1.0.6
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]     Checking unic-char-range v0.9.0
[INFO] [stderr]    Compiling unicode_categories v0.1.1
[INFO] [stderr]     Checking arrayref v0.3.6
[INFO] [stderr]    Compiling crc-catalog v1.1.1
[INFO] [stderr]     Checking constant_time_eq v0.1.5
[INFO] [stderr]     Checking cfg-if v0.1.10
[INFO] [stderr]    Compiling paste v1.0.7
[INFO] [stderr]     Checking arrayvec v0.5.2
[INFO] [stderr]     Checking bytes v1.1.0
[INFO] [stderr]    Compiling uuid v0.8.2
[INFO] [stderr]     Checking pin-project-lite v0.1.12
[INFO] [stderr]    Compiling unicode-segmentation v1.9.0
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]     Checking base64 v0.12.3
[INFO] [stderr]    Compiling encoding_rs v0.8.31
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling whoami v1.2.1
[INFO] [stderr]     Checking deunicode v0.4.3
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]     Checking route-recognizer v0.2.0
[INFO] [stderr]     Checking humansize v1.1.1
[INFO] [stderr]     Checking spin v0.9.2
[INFO] [stderr]     Checking mime v0.3.16
[INFO] [stderr]     Checking remove_dir_all v0.5.3
[INFO] [stderr]    Compiling instant v0.1.12
[INFO] [stderr]     Checking thread_local v1.1.4
[INFO] [stderr]     Checking concurrent-queue v1.2.2
[INFO] [stderr]     Checking async-mutex v1.4.0
[INFO] [stderr]     Checking async-lock v2.5.0
[INFO] [stderr]     Checking simple-mutex v1.1.5
[INFO] [stderr]    Compiling generic-array v0.14.5
[INFO] [stderr]    Compiling value-bag v1.0.0-alpha.8
[INFO] [stderr]    Compiling uncased v0.9.6
[INFO] [stderr]    Compiling ahash v0.7.6
[INFO] [stderr]    Compiling standback v0.2.17
[INFO] [stderr]    Compiling time v0.2.27
[INFO] [stderr]    Compiling cookie v0.14.4
[INFO] [stderr]    Compiling multer v2.0.2
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling lock_api v0.4.7
[INFO] [stderr]    Compiling indexmap v1.8.1
[INFO] [stderr]     Checking tinyvec v1.5.1
[INFO] [stderr]     Checking form_urlencoded v1.0.1
[INFO] [stderr]    Compiling pest v2.1.3
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling blake3 v0.3.8
[INFO] [stderr]     Checking unic-ucd-version v0.9.0
[INFO] [stderr]     Checking walkdir v2.3.2
[INFO] [stderr]    Compiling crc v2.1.0
[INFO] [stderr]     Checking unic-char-property v0.9.0
[INFO] [stderr]    Compiling regex v1.5.5
[INFO] [stderr]     Checking http v0.2.6
[INFO] [stderr]     Checking slug v0.1.4
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]     Checking async-dup v1.2.2
[INFO] [stderr]     Checking unicode-normalization v0.1.19
[INFO] [stderr]     Checking unic-ucd-segment v0.9.0
[INFO] [stderr]    Compiling pest_meta v2.1.3
[INFO] [stderr]    Compiling async-channel v1.6.1
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]     Checking futures-lite v1.12.0
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]     Checking bstr v0.2.17
[INFO] [stderr]     Checking nom v7.1.1
[INFO] [stderr]    Compiling parse-zoneinfo v0.3.0
[INFO] [stderr]    Compiling getrandom v0.2.6
[INFO] [stderr]    Compiling socket2 v0.4.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.0
[INFO] [stderr]    Compiling num_cpus v1.13.1
[INFO] [stderr]    Compiling dirs-sys v0.3.7
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking tempfile v3.3.0
[INFO] [stderr]     Checking unic-segment v0.9.0
[INFO] [stderr]    Compiling phf_shared v0.10.0
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling stringprep v0.1.2
[INFO] [stderr]    Compiling rand_core v0.6.3
[INFO] [stderr]     Checking blocking v1.2.0
[INFO] [stderr]     Checking async-executor v1.4.1
[INFO] [stderr]     Checking atoi v0.4.0
[INFO] [stderr]    Compiling dirs v4.0.0
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]     Checking dashmap v4.0.2
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]    Compiling phf v0.10.1
[INFO] [stderr]    Compiling digest v0.9.0
[INFO] [stderr]    Compiling block-buffer v0.9.0
[INFO] [stderr]    Compiling crypto-mac v0.11.1
[INFO] [stderr]     Checking cipher v0.2.5
[INFO] [stderr]     Checking universal-hash v0.4.1
[INFO] [stderr]     Checking crypto-mac v0.10.1
[INFO] [stderr]     Checking aead v0.3.2
[INFO] [stderr]     Checking crypto-mac v0.8.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling url v2.2.2
[INFO] [stderr]    Compiling futures-intrusive v0.4.0
[INFO] [stderr]     Checking webpki v0.21.4
[INFO] [stderr]     Checking sct v0.6.1
[INFO] [stderr]    Compiling chrono v0.4.19
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]    Compiling sha2 v0.9.9
[INFO] [stderr]    Compiling sha-1 v0.9.8
[INFO] [stderr]    Compiling md-5 v0.9.1
[INFO] [stderr]    Compiling hmac v0.11.0
[INFO] [stderr]     Checking polyval v0.4.5
[INFO] [stderr]     Checking hmac v0.8.1
[INFO] [stderr]     Checking hmac v0.10.1
[INFO] [stderr]     Checking aes-soft v0.6.4
[INFO] [stderr]     Checking ctr v0.6.0
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]    Compiling webpki-roots v0.21.1
[INFO] [stderr]    Compiling hashlink v0.7.0
[INFO] [stderr]     Checking ghash v0.3.1
[INFO] [stderr]     Checking hkdf v0.10.0
[INFO] [stderr]     Checking aes v0.6.0
[INFO] [stderr]     Checking aes-gcm v0.8.0
[INFO] [stderr]    Compiling pest_generator v2.1.3
[INFO] [stderr]    Compiling phf_generator v0.10.0
[INFO] [stderr]    Compiling phf_codegen v0.10.0
[INFO] [stderr]    Compiling chrono-tz-build v0.0.2
[INFO] [stderr]    Compiling chrono-tz v0.6.1
[INFO] [stderr]    Compiling ctor v0.1.22
[INFO] [stderr]    Compiling thiserror-impl v1.0.30
[INFO] [stderr]    Compiling async-attributes v1.1.2
[INFO] [stderr]    Compiling time-macros-impl v0.1.2
[INFO] [stderr]    Compiling futures-macro v0.3.21
[INFO] [stderr]    Compiling pin-project-internal v1.0.10
[INFO] [stderr]    Compiling pest_derive v2.1.0
[INFO] [stderr]     Checking time-macros v0.1.1
[INFO] [stderr]    Compiling polling v2.2.0
[INFO] [stderr]    Compiling rustls v0.19.1
[INFO] [stderr]    Compiling kv-log-macro v1.0.7
[INFO] [stderr]    Compiling async-io v1.6.0
[INFO] [stderr]    Compiling async-global-executor v2.0.4
[INFO] [stderr]    Compiling async-process v1.3.0
[INFO] [stderr]     Checking pin-project v1.0.10
[INFO] [stderr]    Compiling async-std v1.11.0
[INFO] [stderr]     Checking thiserror v1.0.30
[INFO] [stderr]    Compiling async-rustls v0.2.0
[INFO] [stderr]    Compiling sqlx-rt v0.5.11
[INFO] [stderr]     Checking sval v1.0.0-alpha.5
[INFO] [stderr]     Checking serde_fmt v1.0.1
[INFO] [stderr]     Checking serde_qs v0.8.5
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking either v1.6.1
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking itertools v0.10.3
[INFO] [stderr]     Checking globset v0.4.8
[INFO] [stderr]     Checking femme v2.2.0
[INFO] [stderr]     Checking sqlformat v0.1.8
[INFO] [stderr]     Checking ignore v0.4.18
[INFO] [stderr]     Checking globwalk v0.8.1
[INFO] [stderr]    Compiling sqlx-core v0.5.11
[INFO] [stderr]     Checking async-session v2.0.1
[INFO] [stderr]     Checking tera v1.15.0
[INFO] [stderr]     Checking http-client v6.5.1
[INFO] [stderr]     Checking async-h1 v2.3.3
[INFO] [stderr]     Checking async-sse v4.1.0
[INFO] [stderr]     Checking tide v0.16.0
[INFO] [stderr]     Checking tide-tera v0.2.4
[INFO] [stderr]    Compiling sqlx-macros v0.5.11
[INFO] [stderr]     Checking sqlx v0.5.11
[INFO] [stderr]     Checking desafio_backend_alura v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected `;`, found `app`
[INFO] [stdout]   --> src/main.rs:89:43
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |                                           ^ help: add `;` here
[INFO] [stdout] 90 |
[INFO] [stdout] 91 |     app
[INFO] [stdout]    |     --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found `app`
[INFO] [stdout]   --> src/main.rs:89:43
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |                                           ^ help: add `;` here
[INFO] [stdout] 90 |
[INFO] [stdout] 91 |     app
[INFO] [stdout]    |     --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found module `upload::upload`
[INFO] [stdout]   --> src/main.rs:89:28
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^ not a value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0423]: expected value, found module `upload::upload`
[INFO] [stdout]   --> src/main.rs:89:28
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |                            ^^^^^^^^^^^^^^ not a value
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: module import `upload` is private
[INFO] [stdout]   --> src/main.rs:89:36
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |                                    ^^^^^^ private module import
[INFO] [stdout]    |
[INFO] [stdout] note: the module import `upload` is defined here...
[INFO] [stdout]   --> src/controllers/upload.rs:1:5
[INFO] [stdout]    |
[INFO] [stdout] 1  | use super::*;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] note: ...and refers to the module `upload` which is defined here
[INFO] [stdout]   --> src/controllers/mod.rs:3:1
[INFO] [stdout]    |
[INFO] [stdout] 3  | pub mod upload;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^ consider importing it directly
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0603]: module import `upload` is private
[INFO] [stdout]   --> src/main.rs:89:36
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |                                    ^^^^^^ private module import
[INFO] [stdout]    |
[INFO] [stdout] note: the module import `upload` is defined here...
[INFO] [stdout]   --> src/controllers/upload.rs:1:5
[INFO] [stdout]    |
[INFO] [stdout] 1  | use super::*;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] note: ...and refers to the module `upload` which is defined here
[INFO] [stdout]   --> src/controllers/mod.rs:3:1
[INFO] [stdout]    |
[INFO] [stdout] 3  | pub mod upload;
[INFO] [stdout]    | ^^^^^^^^^^^^^^^ consider importing it directly
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `convert::json`
[INFO] [stdout]  --> src/controllers/upload.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tide::{convert::json, Request, StatusCode};
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `convert::json`
[INFO] [stdout]  --> src/controllers/upload.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | use tide::{convert::json, Request, StatusCode};
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/main.rs:64:22
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let temp_files = upload::upload_file();
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^-- an argument of type `tide::Request<State>` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/controllers/upload.rs:11:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub async fn upload_file(mut req: Request<State>) -> tide::Result {
[INFO] [stdout]    |              ^^^^^^^^^^^ -----------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let temp_files = upload::upload_file(/* tide::Request<State> */);
[INFO] [stdout]    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied
[INFO] [stdout]   --> src/main.rs:64:22
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let temp_files = upload::upload_file();
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^-- an argument of type `tide::Request<State>` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/controllers/upload.rs:11:14
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub async fn upload_file(mut req: Request<State>) -> tide::Result {
[INFO] [stdout]    |              ^^^^^^^^^^^ -----------------------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 64 |     let temp_files = upload::upload_file(/* tide::Request<State> */);
[INFO] [stdout]    |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_stream` found for opaque type `impl std::future::Future<Output = Result<Vec<u8>, tide::Error>>` in the current scope
[INFO] [stdout]    --> src/controllers/upload.rs:28:47
[INFO] [stdout]     |
[INFO] [stdout] 28  |     let stream = req.take_body().into_bytes().into_stream();
[INFO] [stdout]     |                                               ^^^^^^^^^^^ method not found in `impl std::future::Future<Output = Result<Vec<u8>, tide::Error>>`
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/future/future/mod.rs:278:8
[INFO] [stdout]     |
[INFO] [stdout] 278 |     fn into_stream(self) -> IntoStream<Self>
[INFO] [stdout]     |        ----------- the method is available for `impl std::future::Future<Output = Result<Vec<u8>, tide::Error>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stdout]     |
[INFO] [stdout] 1   | use futures_util::future::future::FutureExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `into_stream` found for opaque type `impl std::future::Future<Output = Result<Vec<u8>, tide::Error>>` in the current scope
[INFO] [stdout]    --> src/controllers/upload.rs:28:47
[INFO] [stdout]     |
[INFO] [stdout] 28  |     let stream = req.take_body().into_bytes().into_stream();
[INFO] [stdout]     |                                               ^^^^^^^^^^^ method not found in `impl std::future::Future<Output = Result<Vec<u8>, tide::Error>>`
[INFO] [stdout]     |
[INFO] [stdout]    ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/future/future/mod.rs:278:8
[INFO] [stdout]     |
[INFO] [stdout] 278 |     fn into_stream(self) -> IntoStream<Self>
[INFO] [stdout]     |        ----------- the method is available for `impl std::future::Future<Output = Result<Vec<u8>, tide::Error>>` here
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is in scope
[INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it:
[INFO] [stdout]     |
[INFO] [stdout] 1   | use futures_util::future::future::FutureExt;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:89:5
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here
[INFO] [stdout]    |     |
[INFO] [stdout]    |     expected `()`, found mutable reference
[INFO] [stdout]    |
[INFO] [stdout]    = note:      expected unit type `()`
[INFO] [stdout]            found mutable reference `&mut Route<'_, State>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `desafio_backend_alura` due to 7 previous errors; 1 warning emitted
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0423, E0599, E0603.
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:89:5
[INFO] [stdout]    |
[INFO] [stdout] 89 |     app.at("/upload").post(upload::upload)
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- help: consider using a semicolon here
[INFO] [stdout]    |     |
[INFO] [stdout]    |     expected `()`, found mutable reference
[INFO] [stdout]    |
[INFO] [stdout]    = note:      expected unit type `()`
[INFO] [stdout]            found mutable reference `&mut Route<'_, State>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0423, E0599, E0603.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `desafio_backend_alura` due to 7 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "5696245c3a1de58f3aae550861f419752271785756da9470207941586a0b5571", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5696245c3a1de58f3aae550861f419752271785756da9470207941586a0b5571", kill_on_drop: false }`
[INFO] [stdout] 5696245c3a1de58f3aae550861f419752271785756da9470207941586a0b5571
